package ${controllerPackage}.{packageSuffix};

import chen.yi.common.resp.R;
import ${servicePackage}.${packageSuffix}.${className}Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * ${tableComment}控制层
 * @author ${authorName}
 **/
@RestController
@RequestMapping("/${className?uncap_first}")
@Slf4j
public class ${className}Controller {
    private final ${className}Service ${className?uncap_first}Service;

    @Autowired
    public ${className}Controller(${className}Service ${className?uncap_first}Service){
        this.${className?uncap_first}Service=${className?uncap_first}Service;
    }

    /**
     * 新增${tableComment}
     **/
    @PostMapping("/add${className}")
    public R add${className}(){
        return R.success();
    }

}